import Vue from "vue"
import store from '../store/index'

Vue.directive('permission', (el, binding) => {
  if (!store.getters.buttons.includes(binding.value)) {
    el.style.display = 'none'
  }
})